﻿namespace WebAPI.Entities.Dto;

public class UserRegisterDto
{
    private string username;
    private string password;
    private string phone_number;
    private string ip;

    public UserRegisterDto()
    {
    }

    public UserRegisterDto(string username, string password, string phoneNumber, string ip)
    {
        this.username = username;
        this.password = password;
        phone_number = phoneNumber;
        this.ip = ip;
    }

    public string Username
    {
        get => username;
        set => username = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Password
    {
        get => password;
        set => password = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string PhoneNumber
    {
        get => phone_number;
        set => phone_number = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Ip
    {
        get => ip;
        set => ip = value ?? throw new ArgumentNullException(nameof(value));
    }
}